﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Administrator.aspx.cs" Inherits="Default2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
     <style>
        .bigborder{
            height:600px;width:800px;
            margin-left:215px;
            border-color:grey;border-width:1px;border-top-style:solid;
        }
        .top{
             height:69px;width:800px;
            border-color:grey;border-width:2px;border-style:solid;
        }
        .body{
            display:flex;
        }
        .leftbutton{
            width:144px;height:519px;
            border-style:solid;border-width:1px;
            margin-top:12px;
        }
        .rightcontent{
            width:644px;height:519px;
            border-width:1px;border-style:solid;
            margin-top:12px;margin-left:12px;
            overflow:auto;
        }
        .call{
            margin-top:50px;margin-left:250px;
        }
        .time{
            margin-top:50px;margin-left:130px;
        }

    .backbtn:hover{
         background-color: #3ccf15;
         background-color: #3ccf15;
    }
    .backbtn{
        height:40px;width:40px;
        border-radius:50%;border-color:white;
        color:black;
        font-size:20px;
        background-color:white;
        margin-top:8.5px;
    }
     .regist:hover{
        background-color:#3ccf15;
        background-color:#3ccf15;
    }
    .regist{
        height:40px;width:120px;
        border-color:gainsboro;
        color:black;
        font-size:10px;
        background-color:#3ccf15;
        margin-left:12px;margin-top:12px;
    }
     .goods:hover{
        background-color:#3ccf15;
        background-color:#3ccf15;
    }
    .goods{
        height:40px;width:120px;
        border-color:gainsboro;
        color:black;
        font-size:10px;
        background-color:white;
        margin-left:12px;margin-top:12px;
    }
     .order:hover{
        background-color:#3ccf15;
        background-color:#3ccf15;
    }
    .order{
        height:40px;width:120px;
        border-color:gainsboro;
        color:black;
        font-size:10px;
        background-color:white;
        margin-left:12px;margin-top:12px;
    }
     .class:hover{
        background-color:#3ccf15;
        background-color:#3ccf15;
    }
    .class{
        height:40px;width:120px;
        border-color:gainsboro;
        color:black;
        font-size:10px;
        background-color:white;
        margin-left:12px;margin-top:12px;
    }
     .notice:hover{
        background-color:#3ccf15;
        background-color:#3ccf15;
    }
    .notice{
        height:40px;width:120px;
        border-color:gainsboro;
        color:black;
        font-size:10px;
        background-color:white;
        margin-left:12px;margin-top:12px;
    }
    .save:hover{
        background-color:#3ccf15;
        background-color:#3ccf15;
    }
    .save{
        height:40px;width:120px;
        border-color:gainsboro;
        color:black;
        font-size:10px;
        background-color:white;
        margin-left:12px;margin-top:12px;
    }
    .title{
        height:40px;width:644px;
        border-bottom-width:1px;
        background-color:lightgray;
        padding-top:8px;padding-left:270px;
    }
    .table{
        width:630px;
        border-style:solid;border-width:1px;border-block:dashed;border-color:lightgreen;
        margin-top:12px;
        column-rule-style:solid;
        
    }
    
     </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div class="bigborder">
        <div class="top">
           <span>
             <a href="Home.aspx"><input type="button" value="<" class="backbtn"/></a>
           </span> 
            <span class="call">你好，管理员!（***）</span><span class="time">2021年5月18日  21：26：26</span>
        </div>
        <div class="body">
            <div class="leftbutton">
                <span>
                    <a href="Administrator.aspx"><input type="button" value="注册用户管理" class="regist"/></a>
                </span> 
                <span>
                    <a href="Goodsmng.aspx"><input type="button" value="物品管理" class="goods"/></a>
                </span> 
                <span>
                    <a href="Ordermng.aspx"><input type="button" value="订单管理" class="order"/></a>
                </span>  
                <span>
                    <a href="Typemng.aspx"><input type="button" value="物品类别管理" class="class"/></a>
                </span> 
                <span>
                    <a href="Noticemng.aspx"><input type="button" value="公告管理" class="notice"/></a>
                </span>  
                <span>
                    <input type="button" value="保存更改" class="save"/>
                </span>  
            </div>
            <div class="rightcontent">
                <div class="title">
                    注册用户管理
                </div>
                <asp:GridView ID="usergv" AutoGenerateColumns="false" DataKeysName="UserID" Selected="true" runat="server"
                     onrowdeleting="usergv_RowDeleting">

                       <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                       <RowStyle BackColor="#ECF5FF" ForeColor="Black" />
                       <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                       <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                       <HeaderStyle BackColor="#A6CBEF" Font-Bold="True" ForeColor="#404040" BorderColor="#A6CBEF" />
                       <HeaderStyle CssClass="girdview_head" />
                       <RowStyle CssClass="gridview_row" />
                       <PagerStyle HorizontalAlign="Center" />

                    
                       <Columns>
                         <asp:BoundField DataField="UserID" HeaderText="ID" />

                         <asp:BoundField DataField="UserNickname" HeaderText="用户名" />
                         <asp:BoundField DataField="UserPwd" HeaderText="密码" />
                         <asp:BoundField DataField="StudentNumber" HeaderText="学号" />
                         <asp:BoundField DataField="UserAddress" HeaderText="地址"/>
                         <asp:BoundField DataField="UserSex" HeaderText="性别" />
                         <asp:BoundField DataField="UserPhone" HeaderText="联系方式" />
                         <asp:BoundField DataField="QQ" HeaderText="QQ" />
                         <asp:BoundField DataField="StartNumber" HeaderText="使用积分" />
                         <asp:BoundField DataField="Start" HeaderText="操作" />

                            <asp:TemplateField HeaderText="操作" ShowHeader="false">
                             <ItemTemplate>
                                 <asp:DropDownList ID="ddl" DataField="blockflag" runat="server" AutoPostBack="true" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
                                     <asp:ListItem Value="0">正常</asp:ListItem>
                                     <asp:ListItem Value="1">封禁</asp:ListItem>
                                 </asp:DropDownList>  
                             </ItemTemplate>
                         </asp:TemplateField>
                          
                         <asp:TemplateField HeaderText="操作" ShowHeader="false">
                             <ItemTemplate>
                                 <asp:Button ID="Button1" runat="server" CausesValidation="False" 
                                     CommandName="Delete" onclientclick="return confirm('真的要删除吗？'); " Text="删除" />
                             </ItemTemplate>
                         </asp:TemplateField>
                        
                       </Columns>
                </asp:GridView>
            </div>
        </div>
   </div>

</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder3" Runat="Server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server">
</asp:Content>

